//
//  ErrorViewController.swift
//  testRxSwift
//
//  Created by 火星人 on 2017/7/25.
//  Copyright © 2017年 火星人. All rights reserved.
//

import UIKit
import RxSwift

class ErrorViewController: BaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        self.view.addTapWithHandle { (tap) in
            
            let disBag = DisposeBag()
            
            enum TestError: Error {
                case test
            }
            
            Observable<String>.error(TestError.test).subscribe({ (eve) in
                print(eve)
            }).disposed(by: disBag)
            
        }
    }
}
